package com.villaday.idf.model;

/**
 * Created by tudou on 2018/9/7.
 */

public class OrdersPrepare {


    /**
     * code : 200
     * status : success
     * msg : success
     * body : {"actualPrice":2030000,"allowUseWallet":false,"checkInDate":"2018-09-19","checkOutDate":"2018-09-29","currentPrice":2030000,"discountAmount":0,"originalPrice":2030000,"product":{"desc":"整屋350平米 6室1厅14床 宜住14人","id":"1LWa2O45Je","imageUrl":"https://img.villaday.com/images/house_248/21752/21752-10-50881.JPG?x-oss-process=image/resize,m_fill,w_121,h_78,limit_0/sharpen,100","name":"南昆山温泉6房联排别墅（家庭房）"},"walletBalance":0,"walletDeductibleAmount":0}
     */

    private String code;
    private String status;
    private String msg;
    private BodyEntity body;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public BodyEntity getBody() {
        return body;
    }

    public void setBody(BodyEntity body) {
        this.body = body;
    }

    public static class BodyEntity {
        /**
         * actualPrice : 2030000
         * allowUseWallet : false
         * checkInDate : 2018-09-19
         * checkOutDate : 2018-09-29
         * currentPrice : 2030000
         * discountAmount : 0
         * originalPrice : 2030000
         * product : {"desc":"整屋350平米 6室1厅14床 宜住14人","id":"1LWa2O45Je","imageUrl":"https://img.villaday.com/images/house_248/21752/21752-10-50881.JPG?x-oss-process=image/resize,m_fill,w_121,h_78,limit_0/sharpen,100","name":"南昆山温泉6房联排别墅（家庭房）"}
         * walletBalance : 0
         * walletDeductibleAmount : 0
         */

        private long actualPrice;
        private String actualPriceValue;


        private boolean allowUseWallet;
        private String checkInDate;
        private String checkOutDate;
        private long currentPrice;
        private String currentPriceValue;

        private long discountAmount;
        private String discountAmountValue;

        private long originalPrice;
        private String originalPriceValue;


        private ProductEntity product;
        private long walletBalance;
        private String walletBalanceValue;

        private long walletDeductibleAmount;
        private String walletDeductibleAmountValue;

        private int quantityUpper;
        private boolean hideQuantityUpper;
        private int quantityLower;

        private boolean allowAddress;//  "allowAddress": "boolean,是否需要填写地址，默认：false，不需要填写",
        private AddressEntity address;

        private boolean allowEmail;
        private boolean allowIdentityNumber;
        private String stayDiscountAmountValue;
        private String depositAmountValue;
        private String depositType;

        public String getActualPriceValue() {
            return actualPriceValue;
        }

        public void setActualPriceValue(String actualPriceValue) {
            this.actualPriceValue = actualPriceValue;
        }

        public String getCurrentPriceValue() {
            return currentPriceValue;
        }

        public void setCurrentPriceValue(String currentPriceValue) {
            this.currentPriceValue = currentPriceValue;
        }

        public String getDiscountAmountValue() {
            return discountAmountValue;
        }

        public void setDiscountAmountValue(String discountAmountValue) {
            this.discountAmountValue = discountAmountValue;
        }

        public String getOriginalPriceValue() {
            return originalPriceValue;
        }

        public void setOriginalPriceValue(String originalPriceValue) {
            this.originalPriceValue = originalPriceValue;
        }

        public String getWalletBalanceValue() {
            return walletBalanceValue;
        }

        public void setWalletBalanceValue(String walletBalanceValue) {
            this.walletBalanceValue = walletBalanceValue;
        }

        public String getWalletDeductibleAmountValue() {
            return walletDeductibleAmountValue;
        }

        public void setWalletDeductibleAmountValue(String walletDeductibleAmountValue) {
            this.walletDeductibleAmountValue = walletDeductibleAmountValue;
        }

        public boolean isAllowEmail() {
            return allowEmail;
        }

        public void setAllowEmail(boolean allowEmail) {
            this.allowEmail = allowEmail;
        }

        public boolean isAllowIdentityNumber() {
            return allowIdentityNumber;
        }

        public void setAllowIdentityNumber(boolean allowIdentityNumber) {
            this.allowIdentityNumber = allowIdentityNumber;
        }

        public String getStayDiscountAmountValue() {
            return stayDiscountAmountValue;
        }

        public void setStayDiscountAmountValue(String stayDiscountAmountValue) {
            this.stayDiscountAmountValue = stayDiscountAmountValue;
        }

        public String getDepositAmountValue() {
            return depositAmountValue;
        }

        public void setDepositAmountValue(String depositAmountValue) {
            this.depositAmountValue = depositAmountValue;
        }

        public String getDepositType() {
            return depositType;
        }

        public void setDepositType(String depositType) {
            this.depositType = depositType;
        }

        public AddressEntity getAddress() {
            return address;
        }

        public void setAddress(AddressEntity address) {
            this.address = address;
        }

        public static class AddressEntity {

            /*
            * "address": {
    "id": "string,收货地址ID",
    "address": "string,详细地址",
    "tag": "string,标签",
    "preferred": "string,是否是默认地址，默认：false",
    "code": "string,最小行政区编码",
    "region": "string,行政区地址",
    "overlayMobile": "string,隐藏部分信息的手机号，显示时使用",
    "linkman": "string,联系人",
    "mobile": "string,联系电话"
  }
            * */

            private String id;
            private String address;
            private String tag;
            private boolean preferred;
            private String code;
            private String region;
            private String overlayMobile;
            private String linkman;
            private String mobile;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            public String getTag() {
                return tag;
            }

            public void setTag(String tag) {
                this.tag = tag;
            }

            public boolean isPreferred() {
                return preferred;
            }

            public void setPreferred(boolean preferred) {
                this.preferred = preferred;
            }

            public String getCode() {
                return code;
            }

            public void setCode(String code) {
                this.code = code;
            }

            public String getRegion() {
                return region;
            }

            public void setRegion(String region) {
                this.region = region;
            }

            public String getOverlayMobile() {
                return overlayMobile;
            }

            public void setOverlayMobile(String overlayMobile) {
                this.overlayMobile = overlayMobile;
            }

            public String getLinkman() {
                return linkman;
            }

            public void setLinkman(String linkman) {
                this.linkman = linkman;
            }

            public String getMobile() {
                return mobile;
            }

            public void setMobile(String mobile) {
                this.mobile = mobile;
            }
        }

        public boolean isAllowAddress() {
            return allowAddress;
        }

        public void setAllowAddress(boolean allowAddress) {
            this.allowAddress = allowAddress;
        }

        public int getQuantityLower() {
            return quantityLower;
        }

        public void setQuantityLower(int quantityLower) {
            this.quantityLower = quantityLower;
        }

        public boolean isHideQuantityUpper() {
            return hideQuantityUpper;
        }

        public void setHideQuantityUpper(boolean hideQuantityUpper) {
            this.hideQuantityUpper = hideQuantityUpper;
        }

        public int getQuantityUpper() {
            return quantityUpper;
        }

        public void setQuantityUpper(int quantityUpper) {
            this.quantityUpper = quantityUpper;
        }

        public long getActualPrice() {
            return actualPrice;
        }

        public void setActualPrice(long actualPrice) {
            this.actualPrice = actualPrice;
        }

        public boolean isAllowUseWallet() {
            return allowUseWallet;
        }

        public void setAllowUseWallet(boolean allowUseWallet) {
            this.allowUseWallet = allowUseWallet;
        }

        public String getCheckInDate() {
            return checkInDate;
        }

        public void setCheckInDate(String checkInDate) {
            this.checkInDate = checkInDate;
        }

        public String getCheckOutDate() {
            return checkOutDate;
        }

        public void setCheckOutDate(String checkOutDate) {
            this.checkOutDate = checkOutDate;
        }

        public long getCurrentPrice() {
            return currentPrice;
        }

        public void setCurrentPrice(long currentPrice) {
            this.currentPrice = currentPrice;
        }

        public long getDiscountAmount() {
            return discountAmount;
        }

        public void setDiscountAmount(long discountAmount) {
            this.discountAmount = discountAmount;
        }

        public long getOriginalPrice() {
            return originalPrice;
        }

        public void setOriginalPrice(long originalPrice) {
            this.originalPrice = originalPrice;
        }

        public ProductEntity getProduct() {
            return product;
        }

        public void setProduct(ProductEntity product) {
            this.product = product;
        }

        public long getWalletBalance() {
            return walletBalance;
        }

        public void setWalletBalance(long walletBalance) {
            this.walletBalance = walletBalance;
        }

        public long getWalletDeductibleAmount() {
            return walletDeductibleAmount;
        }

        public void setWalletDeductibleAmount(long walletDeductibleAmount) {
            this.walletDeductibleAmount = walletDeductibleAmount;
        }

        public static class ProductEntity {
            /**
             * desc : 整屋350平米 6室1厅14床 宜住14人
             * id : 1LWa2O45Je
             * imageUrl : https://img.villaday.com/images/house_248/21752/21752-10-50881.JPG?x-oss-process=image/resize,m_fill,w_121,h_78,limit_0/sharpen,100
             * name : 南昆山温泉6房联排别墅（家庭房）
             */

            private String desc;
            private String id;
            private String imageUrl;
            private String name;

            private long currentPrice;
            private String currentPriceValue;

            public String getCurrentPriceValue() {
                return currentPriceValue;
            }

            public void setCurrentPriceValue(String currentPriceValue) {
                this.currentPriceValue = currentPriceValue;
            }

            public long getCurrentPrice() {
                return currentPrice;
            }

            public void setCurrentPrice(long currentPrice) {
                this.currentPrice = currentPrice;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getImageUrl() {
                return imageUrl;
            }

            public void setImageUrl(String imageUrl) {
                this.imageUrl = imageUrl;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }
        }
    }
}
